import service from '@/api'

//获取设备列表
export function getComputer(params){
  return service({
    url:'/app/computerUser',
    method:'GET',
    params
  })
}

//获取配件列表
export function getPeijian(params) {
  return service({
    url:'/app/getParts',
    method:'GET',
    params
  })
}

//整机入库
export function warehousing(params){
  return service({
    url:'/app/warehousing',
    method:'POST',
    params
  })
}

//新增设备
export function addComputer(params) {
  return service({
    url:'/app/addComputerUser',
    method:'POST',
    params
  })
}

export function editComputer(params) {
  return service({
    url:'/app/editComputerUser',
    method:'POST',
    params
  })
}

export function delPeijian(params) {
  return service({
    url:'/app/delParts',
    method:'POST',
    params
  })
}

//报废配件
export function scrapParts(params) {
  return service({
    url:'/app/scrapParts',
    method:'POST',
    params
  })
}

//报废整机
export function scrapComputer(params) {
  return service({
    url:'/app/scrapComputer',
    method:'POST',
    params
  })
}

//离职
export function golizhi(params) {
  return service({
    url:'/app/quit',
    method:'POST',
    params
  })
}

//入职
export function induction(params) {
  return service({
    url:'/app/induction',
    method:'POST',
    params
  })
}